Do you want your ad here?

Contact us to get your ad seen by thousands of users every day!

[email protected]

Java on Visual Studio Code – May 2022 Update

  • June 20, 2022
  • 3157 Unique Views
  • 3 min read
Table of Contents
Resources

Hi everyone, welcome to the May update of Visual Studio Code Java.

In this month’s update, we are going to share exciting improvements to our user experience regarding signature help and code completion as well as new Gradle features.

Let’s get started!

Signature Help Improvement

Signature Help displays the signature of a method in a tooltip when a user types the parameter list start character (typically an opening parenthesis). In our latest release, we have made some major improvements to this feature:

  • We added the capability so that the signature help can be triggered automatically
  • We also added two settings to control 1) whether the signature help needs to triggered automatically 2) whether the detailed method description needs to show automatically (this means both the signature and detailed documentation of the method will be displayed)

Here is a demonstration of this feature

The settings to control how you would like to customize the signature help behavior can be found in the following screenshot:

Signature Help Setting

If you are interested, you can also see a more detailed list of how you can utilize these improvements in the original PR here

Control Insert / Replace Mode for Code Completion

In Visual Studio Code, when you accept a code completion suggestion, you can either overwrite or insert. This behavior can be changed in the “Editor > Suggest: Insert Mode” setting.

However, in the past, this feature might not work for Java code as it requires LSP to adopt it.

In our latest release, we have made some changes so now it fully works with our Java extensions. In addition, you can use Shift key to switch between two modes on the fly!

The setting to set this preference can be found here:

Insert replace code completion

We hope these user experience improvements can really help to speed up your coding productivity!

Gradle Improvements

As we shared in our roadmap previously, build tools is one of our major focuses. We are glad to share that in this area we are working very closely with Gradle Enterprise to improve our Gradle for Java extension.

In May, we have a few things to highlight:

Pin Favorite Task

When working with Gradle projects, it is quite common for a developer to repeatedly run some tasks. To save developers time, we have now provided a feature that allows you to “pin” a task at the top of the project view so that it’s easy to find the task and run it again. You can even pass it with an argument. Here is a demo of this feature.

Bug fixes – Support Multi-level Projects and Chinese Encoding Issue

An issue was reported from the community that when our extension searches for a task in a multi-level project, it will duplicate the task indefinitely. This is because of the incorrect usage of a Gradle API call. We have fixed this issue in our latest release.

Another issue that would cause garbled Chinese characters was also fixed. Both issues were reported from the GitHub, and we thank the community for finding them and providing the sample projects with repro steps. Please continue sharing feedback with us.

Feedback and suggestions

As always, your feedback and suggestions are very important to us and will help shape our product in future. There are several ways to give us feedback

Resources

Here is a list of links that are helpful to learn Java on Visual Studio Code.

Java on Visual Studio Code Update – April 2022

Java 18 support, inlay hints for parameter names, new language server status UX, lambda expression support in debugging and more!

Java on Visual Studio Code Update: February 2022

Welcome to the February update of Visual Studio Code Java and this time we have a special edition for education!

Java on Visual Studio Code Update – January 2022

Since this is our first blog post of the new year, we are going to look back on highlights of 2021 and take a look at our roadmap for 2022.

Java Testing with VS Code

In our last post, we talked about starting a new Java project and running and debugging it with VS Code. In this post, we will cover testing.

To run Java tests on VS Code, we recommend using the Java Test Runner extension or the Java Extension Pack, which includes the extension. The extension supports the JUnit4, JUnit5, and TestNG frameworks.

Java Development with VS Code on the Raspberry Pi

Recently we published a full getting started guide for Java with VS Code together with a list of tips and plugins for Java development with Visual Studio Code.

But… did you know you can also use it on the ARM-processor-powered Raspberry Pi?

Until recently this was not available in an official version for the Raspberry Pi, but luckily Microsoft decided to release new versions with installers for both 32-bit and 64-bit Raspberry Pis.

Let’s install and test them!

Do you want your ad here?

Contact us to get your ad seen by thousands of users every day!

[email protected]

Comments (0)

Highlight your code snippets using [code lang="language name"] shortcode. Just insert your code between opening and closing tag: [code lang="java"] code [/code]. Or specify another language.

No comments yet. Be the first.

Subscribe to foojay updates:

https://foojay.io/feed/
Copied to the clipboard